package com.xinxing.learning.batch.service;

import com.xinxing.learning.batch.common.SyncConstants;
import com.xinxing.learning.batch.mapper.target.TargetUserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

@Service
public class IncrementService extends CommonService {
    @Autowired
    private TargetUserMapper targetUserMapper;

    @Override
    public Date selectMaxUpdateTime() {
        return targetUserMapper.selectMaxUpdateTime();
    }

    @Override
    public Long getCdcTempId() {
        return SyncConstants.CDC_TEMP_ID_USER;
    }
}
